home

ThreeJS R&D

(webgl required)

Day One

Turns out there's some shader programming in my future. I thought about doing it in P5 but then again it'd probably be easier in the long run to just spin up another ThreeJS project and do it in there. Not that much overhead and then things should work the way they are supposed to later.

I managed to get a lot more than I thought I would done today considering how busy things were, but I guess that's what happens when you practice. (Though I did cheat and just copy paste a perlin noise function off the internet). Basically we got shaders up, a basic Perlin noise AND got uniforms to animate (aka now a time variable is available inside GLSL). I'd really like to clean this up some and move the GLSL code into their own files so I don't have both GLSL and JS in a single file, but for now it's time to post and go to bed.